﻿using System.ComponentModel.DataAnnotations;
using System;
using System.Collections.Generic;
namespace XSTDZ.ERP.Application.DataContracts
{
    /// <summary>
    /// 退货单DTO
    /// </summary>
    public class ReturnBillDto
    {
        public Guid Id { get; set; }
        [Display(Name = "退货单单号")]
        [Required(ErrorMessage = "请输入{0}!")]
        public string ReturnBillNo { get; set; }
        [Display(Name = "库房")]
        [Required(ErrorMessage = "请输入{0}!")]
        public System.Guid StorehouseID { get; set; }
        [Display(Name = "退货人")]
        [Required(ErrorMessage = "请输入{0}!")]
        public System.Guid ReturnBillorID { get; set; }
        [Display(Name = "退货时间")]
        [Required(ErrorMessage = "请输入{0}!")]
        public System.DateTime ReturnTime { get; set; }
        [Display(Name = "送货人")]
        [Required(ErrorMessage = "请输入{0}!")]
        public System.Guid SenderID { get; set; }
        [Display(Name = "收货单位")]
        [Required(ErrorMessage = "请输入{0}!")]
        public System.Guid DeliveryID { get; set; }
        [Display(Name = "确认状态")]
        public int AffirmState { get; set; }
         [Display(Name = "确认人")]
        public Nullable<System.Guid> AffirmorID { get; set; }
         [Display(Name = "确认时间")]
        public Nullable<System.DateTime> AffirmDate { get; set; }

        [Display(Name = "单子状态")]
        public int BillState { get; set; }
         [Display(Name = "是否结算")]
        public int IsSettle { get; set; }
         [Display(Name = "删除状态")]
        public int Deleted { get; set; }
        public System.Guid CreateID { get; set; }
        public System.DateTime CreateTime { get; set; }
        public Nullable<System.Guid> UpdateID { get; set; }
        public Nullable<System.DateTime> UpdateDate { get; set; }
         [Display(Name = "备注：")]
        public string Remarks { get; set; }

         public string AffirmorName { get; set; }//确认人
         public string AffirmStateName { get; set; }//确认状态
         public string DeleteState { get; set; }//删除状态
         public string SettleState { get; set; }//结算状态
         public string StorehouseName { get; set; }//仓库名称
         public string ReturnBillorName { get; set; }//退货人
         public string SenderName { get; set; }//送货人
         public string DeliveryName { get; set; }//收货单位
    }
}
